<?php
include_once("../modules/checkA.php");
include_once("../../config.php"); 
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'case'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-function.php");

?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controlbase/modules/head.php'); ?>
</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controlbase/modules/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controlbase/modules/sidebar.php'; ?>
        </div>


<div id="content" class="layui-form">
<h1> 项目资料 </h1>
    <div class="tips">
        介绍人必须为employee，方便统计。所有介绍人都转一份资料过去employee中的线人
        所属单位必须先设置好有合作关系才能添加任务
    </div>



<div class="detail-box member-edit-box layui-form">

<div class="detail-boxes">
<ul class="detail-boxing"> 



<form id="edit-member-form" method="post" action="detail-edit-function.php?nav-itemed=member&nowpageid=<?echo $_GET["nowpageid"]?>" enctype="multipart/form-data" class="layui-form">
 
  
 <input type="hidden" name="nid" value="<? echo $detail['nid']?>">





    <fieldset class="layui-elem-field layui-field-title">
        <legend> 基本信息 </legend>
    </fieldset>


  <div class="layui-form-item">
    <label class="layui-form-label">名称</label>
    <div class="layui-input-block">
      <input type="text" name="ai_name" required  lay-verify="required" placeholder="请输入项目名称" autocomplete="off" class="layui-input" value="<? echo $detail['name']?>">
    </div>
  </div>


    <div class="layui-form-item">
        <label class="layui-form-label">编号</label>
        <div class="layui-input-block">
            <input type="text" name="ai_mid"   autocomplete="off" class="layui-input"  value="<? echo $detail['mid']?>">
        </div>
    </div>




    <div class="layui-form-item">
        <label class="layui-form-label">项目类型</label>
        <div class="layui-input-block">

<input type="radio" name="ai_type" value="广告工程" title="广告工程" <? if ($detail['type'] == "广告工程") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="平面设计" title="平面设计" <? if ($detail['type'] == "平面设计") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="微信推广" title="微信推广" <? if ($detail['type'] == "微信推广") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="活动策划" title="活动策划" <? if ($detail['type'] == "活动策划") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="微信平台" title="微信平台" <? if ($detail['type'] == "微信平台") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="网站开发" title="网站开发" <? if ($detail['type'] == "网站开发") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="系统开发" title="系统开发" <? if ($detail['type'] == "系统开发") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="微信广告" title="微信广告" <? if ($detail['type'] == "微信广告") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="工业设计" title="工业设计" <? if ($detail['type'] == "工业设计") {echo "checked";} ?>>
<input type="radio" name="ai_type" value="室内设计" title="室内设计" <? if ($detail['type'] == "室内设计") {echo "checked";} ?>>


        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">项目金额</label>
        <div class="layui-input-block">
            <input type="text" name="ai_sum"   autocomplete="off" class="layui-input"  value="<? echo $detail['sum']?>">
        </div>
    </div>







    <?
    $unit_list=select_lines_all_items($table_Prefix."unit","nid desc","relation = '客户'","0");
    $unit=select_one_line_all_items($table_Prefix."unit","nid = '".$detail['unit']."'");
    ?>


    <div class="layui-form-item">
        <label class="layui-form-label">所属单位</label>
        <div class="layui-input-block">
            <select name="ai_unit">
                <option value="<? echo $detail['unit']?>"><? echo $detail['unit']." : ".$unit['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($unit_list);$i++){ ?>
                    <option value="<? echo $unit_list[$i]['nid'] ?>"><? echo $unit_list[$i]['nid'] ?> : <? echo $unit_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>





    <fieldset class="layui-elem-field layui-field-title">
        <legend> 工作人员 </legend>
    </fieldset>


    <?
    $employee_list=select_lines_all_items($table_Prefix."employee","nid desc","","0");

    ?>

    <?
    $salesmant=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['sales']."'");
    ?>

    <div class="layui-form-item">
        <label class="layui-form-label">业务开发</label>
        <div class="layui-input-block">
            <select name="ai_sales" >
                <option value="<? echo $detail['sales']?>"><? echo $detail['sales']." : ".$salesman['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $employee_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>




    <?
    $ageant_list=select_lines_all_items($table_Prefix."member","nid desc","","0");
    $agent=select_one_line_all_items($table_Prefix."member","nid = '".$detail['agent']."'");
    ?>

    <div class="layui-form-item">
        <label class="layui-form-label">介绍人</label>
        <div class="layui-input-block">
            <select name="ai_agent" >
                <option value="<? echo $detail['agent']?>"><? echo $detail['agent']." : ".$agent['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($ageant_list);$i++){ ?>
                    <option value="<? echo $ageant_list[$i]['nid'] ?>"><? echo $ageant_list[$i]['nid'] ?> : <? echo $ageant_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>







    <?
    $respon=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['respon']."'");
    ?>

    <div class="layui-form-item">
        <label class="layui-form-label">项目负责</label>
        <div class="layui-input-block">
            <select name="ai_respon">
                <option value="<? echo $detail['respon']?>"><? echo $detail['respon']." : ".$respon['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $employee_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>



    <?
    $programer=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['programer']."'");
    ?>


    <div class="layui-form-item">
        <label class="layui-form-label">程序员</label>
        <div class="layui-input-block">
            <select name="ai_major">
                <option value="<? echo $detail['programer']?>"><? echo $detail['programer']." : ".$programer['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $employee_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>








    <?
    $designer=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['designer']."'");
    ?>


    <div class="layui-form-item">
        <label class="layui-form-label">设计师</label>
        <div class="layui-input-block">
            <select name="ai_major">
                <option value="<? echo $detail['designer']?>"><? echo $detail['designer']." : ".$designer['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $employee_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>



    <?
    $editor=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['editor']."'");
    ?>


    <div class="layui-form-item">
        <label class="layui-form-label">编辑</label>
        <div class="layui-input-block">
            <select name="ai_major">
                <option value="<? echo $detail['editor']?>"><? echo $detail['editor']." : ".$editor['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $employee_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>




    <?
    $service=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['service']."'");
    ?>


    <div class="layui-form-item">
        <label class="layui-form-label">跟单</label>
        <div class="layui-input-block">
            <select name="ai_service">
                <option value="<? echo $detail['service']?>"><? echo $detail['service']." : ".$service['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $employee_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>








    <div class="layui-form-item">
        <label class="layui-form-label"> </label>
        <div class="layui-input-block">
        非主力参与人员的，但是协助工作，可以在下面添加。
        </div>
    </div>



    <?
    $include_member_1=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['include_member_1']."'");
    ?>
    <div class="layui-form-item">
        <label class="layui-form-label">参与人员壹</label>
        <div class="layui-input-block">
            <select name="ai_include_member_1">
                <option value="<? echo $detail['include_member_1']?>"><? echo $detail['include_member_1']." : ".$include_member_1['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $agean_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>


    <?
    $include_member_2=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['include_member_2']."'");
    ?>
    <div class="layui-form-item">
        <label class="layui-form-label">参与人员贰</label>
        <div class="layui-input-block">
            <select name="ai_include_member_2">
                <option value="<? echo $detail['include_member_2']?>"><? echo $detail['include_member_2']." : ".$include_member_2['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $agean_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>




    <?
    $include_member_2=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['include_member_2']."'");
    ?>
    <div class="layui-form-item">
        <label class="layui-form-label">参与人员叁</label>
        <div class="layui-input-block">
            <select name="ai_include_member_3">
                <option value="<? echo $detail['include_member_3']?>"><? echo $detail['include_member_3']." : ".$include_member_3['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $agean_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>




    <?
    $include_member_2=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['include_member_2']."'");
    ?>
    <div class="layui-form-item">
        <label class="layui-form-label">参与人员肆</label>
        <div class="layui-input-block">
            <select name="ai_include_member_4">
                <option value="<? echo $detail['include_member_4']?>"><? echo $detail['include_member_4']." : ".$include_member_4['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($agean_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $agean_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>



    <?
    $include_member_2=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['include_member_2']."'");
    ?>
    <div class="layui-form-item">
        <label class="layui-form-label">参与人员伍</label>
        <div class="layui-input-block">
            <select name="ai_include_member_5">
                <option value="<? echo $detail['include_member_5']?>"><? echo $detail['include_member_5']." : ".$include_member_5['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($agean_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $agean_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>







    <fieldset class="layui-elem-field layui-field-title">
        <legend> 项目总结 </legend>
    </fieldset>











    <div class="layui-form-item">
        <label class="layui-form-label">责任人评分</label>
        <div class="layui-input-block">
<input type="radio" name="ai_respon_rank" value="10" title="10" <? if ($detail['status'] == "10") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="9" title="9" <? if ($detail['status'] == "9") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="8" title="8" <? if ($detail['status'] == "8") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="7" title="7" <? if ($detail['status'] == "7") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="6" title="6" <? if ($detail['status'] == "6") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="5" title="5" <? if ($detail['status'] == "5") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="4" title="4" <? if ($detail['status'] == "4") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="3" title="3" <? if ($detail['status'] == "3") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="2" title="2" <? if ($detail['status'] == "2") {echo "checked";} ?>>
<input type="radio" name="ai_respon_rank" value="1" title="1" <? if ($detail['status'] == "1") {echo "checked";} ?>>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">业务员评分</label>
        <div class="layui-input-block">
<input type="radio" name="ai_sales_rank" value="10" title="10" <? if ($detail['status'] == "10") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="9" title="9" <? if ($detail['status'] == "9") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="8" title="8" <? if ($detail['status'] == "8") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="7" title="7" <? if ($detail['status'] == "7") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="6" title="6" <? if ($detail['status'] == "6") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="5" title="5" <? if ($detail['status'] == "5") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="4" title="4" <? if ($detail['status'] == "4") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="3" title="3" <? if ($detail['status'] == "3") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="2" title="2" <? if ($detail['status'] == "2") {echo "checked";} ?>>
<input type="radio" name="ai_sales_rank" value="1" title="1" <? if ($detail['status'] == "1") {echo "checked";} ?>>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">客服评分</label>
        <div class="layui-input-block">
<input type="radio" name="ai_service_rank" value="10" title="10" <? if ($detail['status'] == "10") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="9" title="9" <? if ($detail['status'] == "9") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="8" title="8" <? if ($detail['status'] == "8") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="7" title="7" <? if ($detail['status'] == "7") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="6" title="6" <? if ($detail['status'] == "6") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="5" title="5" <? if ($detail['status'] == "5") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="4" title="4" <? if ($detail['status'] == "4") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="3" title="3" <? if ($detail['status'] == "3") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="2" title="2" <? if ($detail['status'] == "2") {echo "checked";} ?>>
<input type="radio" name="ai_service_rank" value="1" title="1" <? if ($detail['status'] == "1") {echo "checked";} ?>>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">程序员评分</label>
        <div class="layui-input-block">
<input type="radio" name="ai_programer_rank" value="10" title="10" <? if ($detail['status'] == "10") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="9" title="9" <? if ($detail['status'] == "9") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="8" title="8" <? if ($detail['status'] == "8") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="7" title="7" <? if ($detail['status'] == "7") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="6" title="6" <? if ($detail['status'] == "6") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="5" title="5" <? if ($detail['status'] == "5") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="4" title="4" <? if ($detail['status'] == "4") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="3" title="3" <? if ($detail['status'] == "3") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="2" title="2" <? if ($detail['status'] == "2") {echo "checked";} ?>>
<input type="radio" name="ai_programer_rank" value="1" title="1" <? if ($detail['status'] == "1") {echo "checked";} ?>>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">设计师评分</label>
        <div class="layui-input-block">
<input type="radio" name="ai_designer_rank" value="10" title="10" <? if ($detail['status'] == "10") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="9" title="9" <? if ($detail['status'] == "9") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="8" title="8" <? if ($detail['status'] == "8") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="7" title="7" <? if ($detail['status'] == "7") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="6" title="6" <? if ($detail['status'] == "6") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="5" title="5" <? if ($detail['status'] == "5") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="4" title="4" <? if ($detail['status'] == "4") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="3" title="3" <? if ($detail['status'] == "3") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="2" title="2" <? if ($detail['status'] == "2") {echo "checked";} ?>>
<input type="radio" name="ai_designer_rank" value="1" title="1" <? if ($detail['status'] == "1") {echo "checked";} ?>>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">编辑评分</label>
        <div class="layui-input-block">
<input type="radio" name="ai_editor_rank" value="10" title="10" <? if ($detail['status'] == "10") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="9" title="9" <? if ($detail['status'] == "9") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="8" title="8" <? if ($detail['status'] == "8") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="7" title="7" <? if ($detail['status'] == "7") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="6" title="6" <? if ($detail['status'] == "6") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="5" title="5" <? if ($detail['status'] == "5") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="4" title="4" <? if ($detail['status'] == "4") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="3" title="3" <? if ($detail['status'] == "3") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="2" title="2" <? if ($detail['status'] == "2") {echo "checked";} ?>>
<input type="radio" name="ai_editor_rank" value="1" title="1" <? if ($detail['status'] == "1") {echo "checked";} ?>>
        </div>
    </div>






    <div class="layui-form-item">
        <label class="layui-form-label">开始日期</label>
        <div class="layui-input-block">
            <input type="text" name="ai_startdate" id="date" autocomplete="off" class="layui-input"  value="<?echo $detail['startdate']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">结束日期</label>
        <div class="layui-input-block">
            <input type="text" name="ai_enddate" id="date" autocomplete="off" class="layui-input"  value="<?echo $detail['enddate']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
        </div>
    </div>




    <div class="layui-form-item">
        <label class="layui-form-label">付款日期</label>
        <div class="layui-input-block">
            <input type="text" name="ai_paydate" id="date" autocomplete="off" class="layui-input"  value="<?echo $detail['paydate']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block" >
            <input type="radio" name="ai_status" value="完成" title="完成" <? if ($detail['status'] == "完成") {
                echo "checked";
            } ?>>
            <input type="radio" name="ai_status" value="进行中" title="进行中" <? if ($detail['status'] == "进行中") {
                echo "checked";
            } ?>>
            <input type="radio" name="ai_status" value="完结" title="完结" <? if ($detail['status'] == "完结") {
                echo "checked";
            } ?>>
            <input type="radio" name="ai_status" value="自然流失" title="自然流失" <? if ($detail['status'] == "自然流失") {
                echo "checked";
            } ?>>
            <input type="radio" name="ai_status" value="我方终止" title="我方终止" <? if ($detail['status'] == "我方终止") {
                echo "checked";
            } ?>>
            <input type="radio" name="ai_status" value="客户终止" title="客户终止" <? if ($detail['status'] == "客户终止") {
                echo "checked";
            } ?>>
            <input type="radio" name="ai_status" value="其他" title="其他" <? if ($detail['status'] == "其他") {
                echo "checked";
            } ?>>
            <input type="radio" name="ai_status" value="其他" title="询价中" <? if ($detail['status'] == "询价中") {
                echo "checked";
            } ?>>
        </div>

    </div>



    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="ai_remark" placeholder="备注" class="layui-textarea"><? echo $detail['remark']?></textarea>
        </div>
    </div>





 
 


  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>


    <input name="navitemed" type="hidden" value="<? echo $_REQUEST['nav-itemed'] ?>"/>
    <input name="sys_part"  type="hidden" value="<? echo $system_part ?>"/>
    <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
    <input name="sortby"    type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>
    <input name="term_nid"  type="hidden" value="<? echo $_REQUEST['term_nid'] ?>"/>


 
</form>



</ul>
</div>
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>


<?php include_once('../modules/footer.php'); ?> </body>
</html>
